/**
 * @file    settings.cpp
 * @author  Siddharth Sathyam <ssathy2@gmail.com>
 * @author  Alan Ruvalcaba <aruval3@gmail.com>
 * @author  Pat LaMontagna <plamontagna@gmail.com>
 * @version 1.0
 * @section LICENSE
 *
 * This program is property of Siddharth Sathyam, Alan Ruvalcaba, Pat LaMontagna.
 *
 * @section DESCRIPTION
 *
 * The settings class displays user information
 */

#include "settings.h"
#include "ui_settings.h"

settings::settings(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::settings)
{
    ui->setupUi(this);
    this->setAttribute(Qt::WA_DeleteOnClose);
}

settings::~settings()
{
    delete ui;
}


void settings::setUser(QString name)
{
    ui->usernameDisplay->setText(name);
}

void settings::setHost(QString host)
{
    ui->ConnectedToDisplay->setText(host);
}

void settings::setNumFriends(QString num)
{
    ui->NumberOfFriendsDisplay->setText(num);
}
